/**
 * Procesadores de Lenguaje, curso 2009-2010
 * @author grupo 02
 *
 */

package traductor;

public class Tipos {
    public static enum tiposPerm{NATURAL, INTEGER, FLOAT, CHAR, BOOLEAN, ARRAY, RECORD, POINTER, ERR, REF, PROC}

    protected tiposPerm t;
    protected int tam;
    protected Tipos tbase;
    protected String idt;

    public Tipos(){
        this.tam = 1;
        this.idt = "";
    }

    public Tipos(tiposPerm t){
        this.tam = 1;
        this.idt = "";
        this.t = t;
    }

    public String getIdt() {
        return idt;
    }

    public void setIdt(String idt) {
        this.idt = idt;
    }

    public tiposPerm getT() {
        return t;
    }

    public void setT(tiposPerm t) {
        this.t = t;
    }

    public int getTam() {
        return tam;
    }

    public void setTam(int tam) {
        this.tam = tam;
    }

    public Tipos getTbase() {
        return tbase;
    }

    public void setTbase(Tipos tbase) {
        this.tbase = tbase;
    }
}